package com.hzm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: qy137-java
 * @description: 订单实体类
 * @author: 皇子明
 * @create: 2021-10-19 09:18
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Order对象", description = "订单的实体类")
@TableName("t_order")
public class Order implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id; //id
    @ApiModelProperty(value = "订单号")
    @TableField("order_no")
    private String orderNo;
    @ApiModelProperty(value = "课程ID")
    @TableField("course_id")
    private String courseId;
    @ApiModelProperty(value = "课程名称")
    @TableField("course_title")
    private String courseTitle;
    @ApiModelProperty(value = "课程封面")
    @TableField("course_cover")
    private String courseCover;
    @ApiModelProperty(value = "讲师名称")
    @TableField("teacher_name")
    private String teacherName;
    @ApiModelProperty(value = "会员id")
    @TableField("member_id")
    private String memberId;
    @ApiModelProperty("会员昵称")
    private String nickname;
    @ApiModelProperty("会员手机")
    private String mobile;
    @ApiModelProperty(value = "订单金额")
    @TableField("total_fee")
    private BigDecimal  totalFee;
    @ApiModelProperty(value = "支付类型")
    private  Integer payType;
    @ApiModelProperty(value = "订单状态")
    private  Integer status;
    @ApiModelProperty(value = "逻辑删除")
    @TableField("is_deleted")
    private  Boolean isDeleted;
    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private String gmtCreate;
    @ApiModelProperty(value = "更新时间")
    @TableField("gmt_modified")
    private String gmtModified;
    @ApiModelProperty(value = "流水号")
    @TableField(exist = false)
    private String transactionId;
    @ApiModelProperty(value = "支付时间")
    @TableField(exist = false)
    private String payTime;

    @ApiModelProperty(value = "支付表")
    @TableField(exist = false)
    private PayLog payLog;
}